Private Function ITurboCADSmartTieServer_AddTie(ByVal pIDispDwg As Object, ByVal idSbj As Long, ByVal idSbd As Long, ByVal lType As Long) As Boolean
Dim varData As Variant
Set gxDwg = pIDispDwg
Set gxTSets = gxDwg.TieSets
Set gxTSet = gxTSets.TieSet(idSbj, idSbd)
If (gxTSet.Count = 0) Then
tieData.idVrtSbj = lType
tieData.idVrtSbd = -1
varData = tieData
gxTSet.AddTie idVTie, 1, varData
Else
Set gxTie = gxTSet(0)
varData = gxTie.Data
tieData = varData(0)
tieData.idVrtSbd = lType
varData = tieData
gxTie.Data = tieData
End If
Set gxTSet = gxTSets.TieSet(idSbd, idSbj)
If (gxTSet.Count = 0) Then
tieData.idVrtSbj = -1
tieData.idVrtSbd = lType
varData = tieData
gxTSet.AddTie idVTie, 1, varData
Else
Set gxTie = gxTSet(0)
varData = gxTie.Data
tieData = varData(0)
tieData.idVrtSbj = lType
varData = tieData
gxTie.Data = tieData
End If
UpdateTie gxTSet
ITurboCADSmartTieServer_AddTie = True
Clear
End Function
Private Function ITurboCADSmartTieServer_CopyTie(ByVal pIDispDwg As Object, ByVal idSbjSrc As Long, ByVal idSbdSrc As Long, ByVal idSbjTrg As Long, ByVal idSbdTrg As Long) As Boolean
Set gxDwg = pIDispDwg
Set gxGrs = gxDwg.Graphics
Set gxGrSbj = gxGrs.GraphicFromID(idSbjTrg)
Set gxGrSbd = gxGrs.GraphicFromID(idSbdTrg)
Set gxTSets = gxDwg.TieSets
Set gxTSet = gxTSets.TieSet(idSbjSrc, idSbdSrc)
Set gxTie = gxTSet(0)
tieData = gxTie.Data
Set gxTSet = gxTSets.Add(idVTie, gxGrSbj, gxGrSbd, tieData.idVrtSbj, 0)
Set gxTie = gxTSet(0)
gxTie.Data = tieData
Clear
ITurboCADSmartTieServer_CopyTie = True
End Function
Private Function ITurboCADSmartTieServer_DeleteTie(ByVal pIDispDwg As Object, ByVal idSbj As Long, ByVal idSbd As Long, ByVal pIDsipGr As Object) As Boolean
ITurboCADSmartTieServer_DeleteTie = True
End Function
Private Property Get ITurboCADSmartTieServer_Description() As String